package com.hnu.highlynewapp.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hnu.highlynewapp.utils.PageUtils;
import com.hnu.highlynewapp.utils.Query;

import com.hnu.highlynewapp.dao.ProfessionFieldIndexDao;
import com.hnu.highlynewapp.entity.ProfessionFieldIndexEntity;
import com.hnu.highlynewapp.service.ProfessionFieldIndexService;


@Service("professionFieldIndexService")
public class ProfessionFieldIndexServiceImpl extends ServiceImpl<ProfessionFieldIndexDao, ProfessionFieldIndexEntity> implements ProfessionFieldIndexService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ProfessionFieldIndexEntity> page = this.page(
                new Query<ProfessionFieldIndexEntity>().getPage(params),
                new QueryWrapper<ProfessionFieldIndexEntity>()
        );

        return new PageUtils(page);
    }

}